package com.example.administrator.yuejian_15.activity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;

import com.example.administrator.yuejian_15.R;


public class UserSzActivity extends BaseActivity implements View.OnClickListener {

    ImageView sz_fh;
    LinearLayout sz_img,sz_info,sz_mm;

    @Override
    void initView() {
        setLayout_file(R.layout.activity_user_sz);
        sz_fh=(ImageView)findViewById(R.id.sz_fh);
        sz_img=(LinearLayout)findViewById(R.id.sz_img);
        sz_info=(LinearLayout)findViewById(R.id.sz_info);
        sz_mm=(LinearLayout)findViewById(R.id.sz_mm);
    }

    @Override
    void initEvent() {
        sz_mm.setOnClickListener(this);
        sz_img.setOnClickListener(this);
        sz_fh.setOnClickListener(this);
        sz_info.setOnClickListener(this);

    }

    @Override
    void initDate() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.sz_fh:
                finish();
                break;
            case R.id.sz_img:
                Toast.makeText(UserSzActivity.this,"2.0开发中",Toast.LENGTH_SHORT).show();
                break;
            case R.id.sz_mm:
                Intent intent=new Intent(UserSzActivity.this,SetPasswordActivity.class);
                startActivity(intent);
                break;
            case R.id.sz_info:

                Intent intent2 = new Intent(UserSzActivity.this, SetUserInfoActivity.class);
                startActivity(intent2);
                break;
        }
    }
}
